<?php
# 基本配置
return [
    [
        'name' => 'state',
        'title' => '状态',
        'component' => 'switches',
        'value' => 0,
        'extra'         => [
            'props' => [
                'activeValue' => 1,
                'inactiveValue' => 0,
                'activeText' => '开启',
                'inactiveText' => '关闭',
            ]
        ]
    ],
    [
        'name'          => 'appid',
        'title'         => 'AppID',
        'value'         => '',
        'component'     => 'input',
        'extra'         => [
            'props'     => [
                'type'  => 'text',
            ],
            'prompt' => [
                'text' => '百度智能云-文字识别-公有云服务-应用列表-AppID，<a href="https://console.bce.baidu.com/ai/#/ai/ocr/app/list" target="_blank" style="color:var(--el-color-primary);">百度智能云</a>'
            ],
        ],
    ],
    [
        'name'          => 'key',
        'title'         => 'API Key',
        'value'         => '',
        'component'     => 'input',
        'extra'         => [
            'props'     => [
                'type'  => 'text',
            ],
        ],
    ],
    [
        'name'          => 'secret',
        'title'         => 'Secret Key',
        'value'         => '',
        'component'     => 'input',
        'extra'         => [
            'props'     => [
                'type'  => 'text',
            ],
        ],
    ],
];
